from django.test import TestCase

# Create your tests here.
# from django.core.mail import send_mail
#
# send_mail(subject='测试邮件', message='这是测试邮件', from_email='美多商城<13303479527@163.com>', recipient_list=['liangxuepeng@itcast.cn'])


# 区域测试代码
# from users.models import Area
# city = Area.objects.get(name='广州市')
# city.subs.all()
# <QuerySet [<Area: 荔湾区>, <Area: 越秀区>, <Area: 海珠区>, <Area: 天河区>, <Area: 白云区>, <Area: 黄埔区>, <Area: 番禺区>, <Area: 花都区>, <Area: 南沙区>, <Area: 从化区>, <Area: 增城区>]>